<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
      
      
      <ui:composition template="/WEB-INF/adicional/templates/templateHome.xhtml">
      
      	<ui:define name="tituloPagina">
      		<h:outputText value="#{msgs.configuracoes_label_titulo}" />
      	</ui:define>
      	
      	<ui:define name="conteudoCentro">
      		<p:panel>
	      	
	      		<h:form id="formulario">
	      		
	      			<div>
			      		<h:outputText for="comboTemas" value="#{msgs.configuracoes_label_escolha_tema} " />
			      		<h:selectOneMenu value="#{temas.tema}" id="comboTemas" onchange="submit();">
			      			<f:selectItems value="#{temas.listaTemas}"></f:selectItems>
			      		</h:selectOneMenu>
		      		</div>
		      		
		      		<div>
		      			<h:outputText value="#{msgs.configuracoes_label_escolha_linguagem}" />
		      		
		      			<h:commandLink action="#{linguagem.mudarLinguagem('pt','BR')}" >
		      			
		      				<img src="#{facesContext.externalContext.requestContextPath}/resources/images/flagBrasil.png"></img>
		      			
		      			</h:commandLink>
		      			
		      			<h:commandLink action="#{linguagem.mudarLinguagem('en','US')}" >
		      			
		      				<img src="#{facesContext.externalContext.requestContextPath}/resources/images/flagEua.png"></img>
		      			
		      			</h:commandLink>
		      			
		      		</div>
		      		
	      		</h:form>
      		</p:panel>	
      	</ui:define>
      
      </ui:composition>

</html>